package com.betterjr.common.web;

import java.util.ArrayList;
import java.util.List;

public class FilterSpecialURIChain {

    private static List<FilterSpecialURI> filterList = new ArrayList<>();

    static {
        filterList.add(new ErrorFilterSpecialURI());
    }

    /**
     * 
     * @Title: filterURIFlag 
     * @Description: TODO(这里用一句话描述这个方法的作用) 
     * @param uri
     * @return 如果包含特殊路径比如/error/   则直接返回true
     * @throws 
     * @author xuyp
     * @date 
     */
    public static boolean filterURIFlag(String uri) {

        for (FilterSpecialURI filterSpecialURI : filterList) {

            if (filterSpecialURI.FilterURI(uri) == true) return true;
        }
        return false;

    }

}
